import axios, { Axios } from 'axios'
const context = '/recipeservice'

/**
 * 获取 Recipecategory 分页列表
 */
export function getRecipecategoryPagination(data: any) {
  return axios.get(`${context}/recipeCategory/pagination`, { params: data })
}

/**
 * 获取 Recipecategory 所有数据
 */
export function getRecipecategoryAllList(data: any) {
  return axios.get(`${context}/recipeCategory/all`, { params: data })
}

/**
 * 获取 Recipecategory 详情
 */
export function getRecipecategoryDetailById(id: any) {
  return axios.get(`${context}/recipeCategory/${id}`, { params: { id } })
}

/**
 * 新增 Recipecategory
 */
export function addRecipecategory(data: any) {
  return axios.post(`${context}/recipeCategory`, data)
}

/**
 * 修改 Recipecategory
 */
export function updateRecipecategory(data: any) {
  return axios.put(`${context}/recipeCategory`, data)
}

/**
 * 删除 Recipecategory
 */
export function batchRemoveRecipecategory(data: any) {
  return axios.post(`${context}/recipeCategory/batchRemove`, data)
}
